package com.qpuc;

import android.os.CountDownTimer;
import android.widget.Button;
import android.widget.TextView;

public class CompteurNeufPointsGagnants extends CountDownTimer {

	private TextView affichage;
	private Button[] boutons;
	
	public CompteurNeufPointsGagnants(long millisInFuture, long countDownInterval, TextView affichage, Button[] boutons) {
		super(millisInFuture, countDownInterval);
		this.affichage = affichage;
		boutons = new Button[4];
		this.boutons = boutons;
	}
	
	public void onTick(long millisUntilFinished) {
        affichage.setText(""+millisUntilFinished / 1000);
    }

    public void onFinish() {
    	affichage.setText("trop tard !");
    }
   
}